package com.zxc.service;

import com.zxc.model.*;
import com.zxc.model.Crops.CropsVO;
import com.zxc.model.Diseases.DiseasesHistory;
import com.zxc.model.ParkDaily.ParkState;
import com.zxc.model.ParkDetails;

import java.util.List;


public interface UserService {

    public int checkAccount(String id,String pass);

//      可以查询出对应账号的信息
    public User getUser(String userName);

    List<User>getUserList(User user);
//      可以查询出园区和管理园区的员工信息系。 后期在加上植物信息
    public List<ParkDetails> getParkByUserId(String id);
    List<ParkDetails> getParkByUser(ParkDetails parkDetails);
    ParkState getParkOne(ParkState parkState);



//  获取对应账号的种子仓库 数据
    public List<seeds> getSeedList(seeds seeds);

    //  获取对应账号的农具仓库 数据
    public List<Tools> getToolsList(Tools tools);

    //  获取对应账号的肥料仓库 数据recordParkDailyInfo
    public List<Fertilizer> getFertilizerList(Fertilizer fertilizer);

    //  获取对应账号的农药仓库 数据
    public List<Pesticide> getPesticideList(Pesticide pesticide);


    //管理员插入仓库数据
    int setPesticide(Pesticide pesticide);
    int setPesticideWarehouse(Pesticide pesticide);
    int setFertilizerWarehouse(Fertilizer fertilizer);
    int setSeedsWarehouse(seeds seeds);
    int setToolsWarehouse(Tools tools);
    //员工插入仓库数据
    int setUserPesticideWarehouse(Pesticide pesticide);
    int setUserFertilizerWarehouse(Fertilizer fertilizer);
    int setUserSeedsWarehouse(seeds seeds);
    int setUserToolsWarehouse(Tools tools);
    //员工查询仓库数据
    List<Tools> getUserToolsList(Tools tools);
    List<seeds> getUserSeedsList(seeds seeds);
    List<Pesticide> getUserPesticideList(Pesticide pesticide);
    List<Fertilizer> getUserFertilizerList(Fertilizer fertilizer);

    //园区日常信息记录以及治疗物使用记录
    int recordParkDailyInfo(ParkState parkState);
    List<ParkState> getParkStateHistory(ParkState parkState);
   int setParkToUserOk(List<ParkDetails> parkDetails);
    int setParkToUserNO(List<ParkDetails> parkDetails);
    //人员表信息的插入
    int setUser(User user);
    //个人工作计划表的插入
    int setPlan(Plan plan);
    int deleteUserPlan(Plan plan);
    List<Plan> getPlantList(Plan plan);
    List<Plan> getAllPlantList(Plan plan);
    //插入病症历史信息表
    int setDiseasesHistory(DiseasesHistory diseasesHistory);

    List<Fertilizer> getFertilizer();
    List<Pesticide> getPesticide();

    List<seeds> getSeed(seeds vo);

    int ParkPlant(CropsVO vo);
    int updatePark(ParkDetails parkDetails);

}
